import request from '@/http/request.js'

export const getProjectList = (params) =>
  request({ url: '/sys_project/page', params })

export const projectDetail = (params) =>
  request({ url: `/sys_project/get/${params.id}` })

export const addProject = (params) =>
  request({ method: 'post', url: '/sys_project/save', params })

export const updateProject = (params) =>
  request({ method: 'post', url: '/sys_project/update', data: params })

export const deleteProject = (params) =>
  request({ method: 'post', url: '/sys_project/delete', data: params })

export const getAllProjectList = (params) =>
  request({ url: '/sys_project/getAllProject', params })
